package javafoundations;

/**
 * Created by zhangyunqi on 2017/10/9.
 */


public class EmptyCollectionException extends RuntimeException
{
    /**

     * Sets up this exception with an appropriate message.

     * @param collection String representing the name of the collection

     */
    public EmptyCollectionException (String collection)
    {
        super ("The " + collection + " is empty.");
    }
}
